x86: enable CMT for each domain RMID
authorDongxiao Xu <dongxiao.xu@intel.com>
Mon, 6 Oct 2014 10:43:20 +0000 (12:43 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 6 Oct 2014 10:43:20 +0000 (12:43 +0200)
commit494005637de52e52e228c04d170497b2e6950b53
tree78f49539e8e2ece679ce9544e551048f56fc0081
parent78ec83170a25b7b7cfd9b5f0324bacdb8bed10bf
x86: enable CMT for each domain RMID

If the CMT service is attached to a domain, its related RMID
will be set to hardware for monitoring when the domain's vcpu is
scheduled in. When the domain's vcpu is scheduled out, RMID 0
(system reserved) will be set for monitoring.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Chao Peng <chao.p.peng@linux.intel.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/arch/x86/domain.c
xen/arch/x86/psr.c
xen/include/asm-x86/msr-index.h
xen/include/asm-x86/psr.h